﻿<phone:PhoneApplicationPage 
    x:Class="NearChat.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" 
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="UniformToFill" ImageSource="img/bg.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,34,12,3" Height="55">
        	<StackPanel.Background>
        		<ImageBrush Stretch="None" ImageSource="img/title.png"/>
        	</StackPanel.Background>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition/>
        		<ColumnDefinition Width="0"/>
        	</Grid.ColumnDefinitions>
            <TextBlock Height="53" HorizontalAlignment="Left" Margin="6,6,0,0" x:Name="Saluto" Text="" VerticalAlignment="Top" Width="444" FontSize="30" Grid.ColumnSpan="2" />
            <Button Content="My Profile" Height="72" HorizontalAlignment="Left" Margin="12,346,0,0" x:Name="ButtonProfilo" VerticalAlignment="Top" Width="438" Tap="ButtonProfilo_Tap" Grid.ColumnSpan="2" BorderBrush="#FF1F3D3C" Foreground="#FF1F3D3C" />
            <Border BorderThickness="0" HorizontalAlignment="Right" Height="30" Margin="0,132,35,0" VerticalAlignment="Top" Width="30" Background="Red" CornerRadius="50" Name="NuoviMessaggiBorder">
                <TextBlock Margin="0" Name="NuoviMessaggiText" Text="3" Foreground="White" TextAlignment="Center" />
            </Border>
            <Button Content="Find Near Friends" Height="72" HorizontalAlignment="Left" Margin="12,112,0,0" x:Name="buttonCerca" VerticalAlignment="Top" Width="438" Tap="buttonCerca_Tap" Grid.ColumnSpan="2" BorderBrush="#FF1F3D3C" Foreground="#FF1F3D3C" />
            <Button Content="My Favorite Near Friends" Height="72" HorizontalAlignment="Left" Margin="12,190,0,0" x:Name="buttonPreferiti" VerticalAlignment="Top" Width="438" Tap="buttonPreferiti_Tap" Grid.ColumnSpan="2" BorderBrush="#FF1F3D3C" Foreground="#FF1F3D3C" />
            <Button Content="I" Height="72" HorizontalAlignment="Left" Margin="0,-66,0,0" x:Name="buttonInfo" VerticalAlignment="Top" Width="72" Tap="buttonInfo_Tap" d:LayoutOverrides="VerticalAlignment" Foreground="#FF1F3D3C" BorderBrush="#FF1F3D3C" />
            <Button Content="C" Height="72" Margin="0,-66,0,0" x:Name="buttonRic" VerticalAlignment="Top" Tap="buttonRic_Tap" RenderTransformOrigin="4.625,-6.153" d:LayoutOverrides="VerticalAlignment, GridBox" Foreground="#FF1F3D3C" BorderBrush="#FF1F3D3C" Width="72" HorizontalAlignment="Right" />
            <Button Content="My Black List" Height="72" HorizontalAlignment="Left" Margin="12,268,0,0" x:Name="buttonNera" VerticalAlignment="Top" Width="438" Tap="buttonNera_Tap" Grid.ColumnSpan="2" BorderBrush="#FF1F3D3C" Foreground="#FF1F3D3C" />
            <Image Height="130" Margin="0,0,0,46" Source="img/icona.png" Stretch="Fill" VerticalAlignment="Bottom" Width="130" HorizontalAlignment="Center" d:LayoutOverrides="Width" />
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>